package com.flysh.host.service;

import java.util.List;

import com.flysh.host.model.User;

public interface UserManagerService {
	/**
	 * ��½
	 * @return
	 */
	User login(User user);

	/**
	 * ��ȡ�����û�
	 * @return
	 */
	List<User> getAllUsers();
	/**
	 * 
	 * @param list
	 * @return json
	 */
	String getAllUsers(List<User> list);
	
	int add(User user);
	
	int remove(Long id);
	
	int update(Long id,User newUser);
	
	User getUser(Long id);
	
	List<User> getAllUser();

}
